package com.panda.expand.extend;

import com.google.common.collect.Sets;
import com.panda.expand.Extend;

public class Goto extends Extend {

    public static Goto INSTANCE = new Goto();

    private Goto() {
        super("goto", Sets.newHashSet("view"), Sets.newHashSet("$compile","$scope"),
                "$compile($(this).attr('sub-view',view + ((view.length - 5 >= 0 && view.lastIndexOf(\".html\") === view.length - 5) ? \"\" : \".html\")))($scope)");
    }
}
